package com.thales.Junit_Employe;

public class BusinessLogic {
	   // Calculate the yearly salary of employee
	   public double calculateYearlySalary(EmployeeDetails ed){
	      double yearlySalary=0;
	      yearlySalary = ed.getMonthlySalary() * 12;
	      return yearlySalary;
	   }
		
	   // Calculate the appraisal amount of employee
	   public double calculateAppraisal(EmployeeDetails ed){
	      double appraisal=0;
	      if(ed.getMonthlySalary() < 10000){
	         appraisal = 500;
	      }else{
	         appraisal = 1000;
	      }
	      return appraisal;
	   }
	}
